home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / MutableTreeNode.java < prev    next >
Text File  |  1998-06-30  |  2KB  |  63 lines

  1. /*
  2.  * @(#)MutableTreeNode.java    1.1 97/09/23
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.swing.tree;
  22.  
  23. /**
  24.  * @version 1.1 09/23/97
  25.  * @author Rob Davis
  26.  * @author Scott Violet
  27.  */
  28.  
  29. public interface MutableTreeNode extends TreeNode
  30. {
  31.     /**
  32.      * Adds <code>child</code> to the receiver at <code>index</code>.
  33.      * <code>child</code> will be messaged with <code>setParent</code>.
  34.      */
  35.     void insert(MutableTreeNode child, int index);
  36.  
  37.     /**
  38.      * Removes the child at <code>index</code> from the receiver.
  39.      */
  40.     void remove(int index);
  41.  
  42.     /**
  43.      * Removes <code>node</code> from the receiver. <code>setParent</code>
  44.      * will be messaged on <code>node</code>.
  45.      */
  46.     void remove(MutableTreeNode node);
  47.  
  48.     /**
  49.      * Resets the user object of the receiver to <code>object</code>.
  50.      */
  51.     void setUserObject(Object object);
  52.  
  53.     /**
  54.      * Removes the receiver from its parent.
  55.      */
  56.     void removeFromParent();
  57.  
  58.     /**
  59.      * Sets the parent of the receiver to <code>newParent</code>.
  60.      */
  61.     void setParent(MutableTreeNode newParent);
  62. }
  63.